package com.fire.social.controller;

import com.fire.social.config.Result;
import com.fire.social.config.Results;
import com.fire.social.utils.GenerateUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/generate")
public class GenerateController {

    @Autowired
    private GenerateUtil generateUtil;

    @GetMapping("/hobby")
    public Result hobby() {
        generateUtil.generateHobby();
        return Results.success();
    }

    @GetMapping("/init")
    public Result init() {
        generateUtil.generate();
        return Results.success();
    }
}
